package cn.tqfeiyang.smartadmin.office.request;

import java.time.LocalDateTime;

import cn.tqfeiyang.smartadmin.office.constant.PriorityEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.*;
import lombok.Data;

/**
 * 通知添加请求
 *
 * @author tqfeiyang
 * @since 2024-09-04
 */
@Data
public class NoticeCreateDTO {

    /**
     * 标题
     */
    @Schema(description = "标题", required = true)
    @NotBlank(message = "标题不能为空")
    @Size(max = 200, message = "标题长度不能超过200字符")
    private String title;

    /**
     * 内容
     */
    @Schema(description = "内容", required = true)
    private String content;

    /**
     * 优先级
     */
    @Schema(description = "优先级")
    private PriorityEnum priority = PriorityEnum.LOW;

    /**
     * 排序
     */
    @Schema(description = "排序")
    private Integer sort = 0;

}